import { Alova } from '@/utils/http/alova/index';

//获取table
export function getPosts(params: any) {
  return Alova.Post('/admin/posts', params);
}

export function putPosts(params: any) {
  return Alova.Put('/admin/posts', params);
}

export function patchPosts(params: any) {
  return Alova.Patch('/admin/posts', params);
}

export function getPostsInfo(id: number) {
  return Alova.Get('/admin/posts/' + id);
}

export function deletePosts(id: number) {
  return Alova.Delete('/admin/posts/' + id);
}
